<template>
<div class="register">
  <div class="icon">
    <img src="@/assets/20190425100917895.png">
    <div>西科大二手书城</div>
  </div>
  <div class="form">
    <div class="welcome">
      欢迎注册二手书城
    </div>
    <div class="account">
      <div>账号:</div>
      <Input type="text" placeholder="请输入账号" v-model="user.account"></Input>
    </div>
    <div class="password">
      <div >密码:</div>
      <Input type="password" placeholder="请输入密码" v-model="user.password"></Input>
    </div>
    <div class="account">
      <div>姓名:</div>
      <Input type="text" placeholder="请输入姓名" v-model="user.username"></Input>
    </div>
    <div class="account">
      <div>性别:</div>
      <template class="template">
        <el-radio v-model="user.gender" label="1" class="gender" size="medium">男</el-radio>
        <el-radio v-model="user.gender" label="2" class="gender">女</el-radio>
      </template>
    </div>
    <div class="account">
      <div>电话号:</div>
      <Input type="text" placeholder="请输入电话号码" v-model="user.phoneNumber"></Input>
    </div>
    <div class="account">
      <div>学院:</div>
      <Input type="text" placeholder="请输入学院" v-model="user.coollege"></Input>
    </div>
    <div class="account">
      <div>年级:</div>
      <Input type="text" placeholder="请输入年级" v-model="user.grade"></Input>
    </div>
    <el-button type="primary" round class="button" @click="register">注册</el-button>
  </div>
  <div>
  </div>
</div>
</template>

<script>
export default {
  name: "Register",
  data(){
    return {
      user:{}
    }
  }
}
</script>

<style scoped>
.register {
  height: 100%;
  background: linear-gradient(-90deg, #29bdd9 0%, #276ace 100%);
  overflow: scroll;
}
.icon {
  display: flex;
  height: 60px;
  width: 22%;
  margin-top: 100px;
  margin-left: 40%;
  justify-content: space-between;

}
.icon div {
  font-size: 35px;
  margin-top: 30px;
  font-weight: 700;
  margin-right: 60px;
}
.icon img {
  height: 100px;
}
.form {
  margin-left: 38%;
  height: 100%;
  width: 25%;
  margin-top: 70px;
  background-color: rgb(41,186,217);
  border-radius: 40px;
}
.form .welcome {
  font-size: 30px;
  margin: 30px 0 0 130px;
  font-weight: 700;
  color: dodgerblue;
}
.form .account,.password {
  width: 300px;
  margin-left: 100px;
  /*background-color: red;*/
  margin-top: 30px;
}
.form .account div,input {
  text-align: center;
  border-radius: 30px;
  line-height: 40px;
  padding-left: 10px;
  height: 40px;
  font-size: 20px;
  background-color: rgb(229,231,235);
  width: 300px;
  border: 0;
}
.form .password div,input {
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  border-radius: 30px;
  padding-left: 10px;
  background-color: rgb(229,231,235);
}
.button {
  margin-top: 80px;
  width: 100%;
  /*margin-left: 100px;*/
}
.gender:nth-child(3) {
  margin-left: 145px;
}
.gender {
  font-size: 50px;
}
/deep/ .el-radio__label {
  font-size: 30px;
}


</style>